package com.xy.designPatterns.observer;

public class InventoryObserver implements OrderStatusObserver{

    @Override
    public void update(Order order) {
        if(order.getStatus() == OrderStatus.PAID){
            // 支付成功，扣减库存
        }
    }
}
